export function listPage(){
    return {
        url:"sys/notice/listPage",
        method:"get",
        respone:(opts)=>{
            const {pageNum,pageSize}=opts.data;
            const totalSize=4;
            const content=
            pageNum*pageSize<totalSize
            ?'content|${pageSize}'
            :'content|${totalSize % pageSize}';
            return{
                code:200,
                msg:null,
                data:{
                    pageNum,
                    pageSize,
                    totalSize,
                    [content]:[
                        {
                            id:"@increment",
                            'createdBy|1':["admin",'admin2'],
                            title:"@ctitle(5,20)",
                            createTime:"@data @time",
                            content:"@cparagrath(1,2)",
                            'publishTime|1':['','@data @time'],
                        },
                    ],
                },
            };
        },
    };
}
export function operations() {
    return {
      url: "sys/notice/(save|update|delete)",
      method: "post",
      response: {
        code: 200,
      }
    }
  }
  